package trs.gtfs.mapper; 
import trs.gtfs.model.Agency; 
public class AgencyFieldMapper extends GtfsRowMapper<Agency> {
  static abstract class AgencyFieldDS extends FieldDS<Agency> { AgencyFieldDS(String name) { super(name); } }
  private static final AgencyFieldDS FEED_ID = new AgencyFieldDS("feed_id") {	public void processColumn(Agency o, String value) {      o.setFeedId(toLong(value)); } };
  private static final AgencyFieldDS AGENCY_ID = new AgencyFieldDS("agency_id") {	public void processColumn(Agency o, String value) {      o.setId(toLong(value)); } };
  private static final AgencyFieldDS AGENCY_NAME = new AgencyFieldDS("agency_name") {	public void processColumn(Agency o, String value) {      o.setName(value); } };
  private static final AgencyFieldDS AGENCY_URL = new AgencyFieldDS("agency_url") {	public void processColumn(Agency o, String value) {      o.setUrl(value); } };
  private static final AgencyFieldDS AGENCY_TIMEZONE = new AgencyFieldDS("agency_timezone") {	public void processColumn(Agency o, String value) {      o.setTimezone(value); } };
  private static final AgencyFieldDS AGENCY_LANG = new AgencyFieldDS("agency_lang") {	public void processColumn(Agency o, String value) {      o.setLang(value); } };
  private static final AgencyFieldDS AGENCY_PHONE = new AgencyFieldDS("agency_phone") {	public void processColumn(Agency o, String value) {      o.setPhone(value); } };
  private static final AgencyFieldDS AGENCY_FARE_URL = new AgencyFieldDS("agency_fare_url") {	public void processColumn(Agency o, String value) {      o.setFareUrl(value); } };
  private static final AgencyFieldDS[] allFields = new AgencyFieldDS[] { FEED_ID,AGENCY_ID,AGENCY_NAME,AGENCY_URL,AGENCY_TIMEZONE,AGENCY_LANG,AGENCY_PHONE,AGENCY_FARE_URL };
  public AgencyFieldMapper(String[] headers) { super(headers, allFields, new AgencyFieldDS[headers.length]); }
  @Override
  protected Agency newRow() { return new Agency(); }
}
